package com.ctv.my.customview.BaiajCustomView.activities;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.ctv.my.customview.BaiajCustomView.View.SmileView;
import com.ctv.my.customview.BaiajCustomView.configs.Eenum;
import com.ctv.my.customview.BaiajCustomView.utils.UIUtil;
import com.ctv.my.customview.R;


/**
 * 自定义点赞按钮Act
 * Created by baiaj on 2017/7/28.
 */

public class LikeAct extends AppCompatActivity{

      private SmileView smileView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_like_click);
        smileView = (SmileView) findViewById(R.id.likeact_smileview);
        try {
            smileView.setPrecent(40,60);
            smileView.setDivider(2,20,16,0,16,8);
        } catch (Exception e) {
            e.printStackTrace();
            Toast.makeText(this,e.getMessage().toString(),Toast.LENGTH_SHORT).show();
            finish();
        }
    }

}
